package com.zfzs.post.modules.goods.domain;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author wq
 * @date 2019-10-08
 * 商品类型
 */
@Data
@Document(collection = "goods")
public class Goods implements Serializable {

    //主键
    private String id;
    //购买数量
    private Integer leastNum;
    //单价
    private Double price;
    //封面图片
    private String coverUrl;
    //商品类型
    private Integer goodsType;
    //是否显示
    private Integer isShow;
    //名称
    private String name;
    //渠道id
    private Long channelId;
    //创建时间
    private Date createTime;

    //修改时间
    private Date updateTime;
    //排序
    private Integer sort;
    //机器类型
    private Long terminalTypeId;
    //机器型号
    private String model;
    //轮播列表
    private List<String> bannerList;
    //详情列表
    private List<String> infoList;

}